﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using shop.entity;
using shop.service;


namespace shop.web.view
{
    public partial class GoodDetail : System.Web.UI.Page
    {
        protected Goods goods;
        protected int logined = 0;
        protected User user;
        protected string password="0";
        protected int userId;
        private GoodsService goodsService = new GoodsService();
      
        protected void Page_Load(object sender, EventArgs e)
        {
            int goodsId = Convert.ToInt32(Request.QueryString["id"]);

            goods = goodsService.getGoods(goodsId);

            if ((User)Session["user"]!=null) {
                user = (User)Session["user"];
                password = user.Password;
                logined = 1;
                userId = user.Id;
            }
           
        }
    }
}